package com.test4.bean;

/**
 * @author Cc
 * 2024-03-12
 */
public class User extends People {
    private String toolName;

    {
        this.setName("钥匙");
    }

    @Override
    public void openDoor(Door door) {
        door.open();
    }

    @Override
    public void closeDoor(Door door) {
        door.close();
    }

    @Override
    public String getToolName() {
        return this.toolName;
    }

    @Override
    public void setName(String value) {
        this.toolName = value;
    }

    @Override
    public void open(Door door) {
        openDoor(door);
    }
}
